package com.gzist.elderlyserviceplatform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzist.elderlyserviceplatform.entity.dto.ListQueryPageDTO;
import com.gzist.elderlyserviceplatform.entity.po.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzist.elderlyserviceplatform.entity.vo.ClientCommentVo;
import com.gzist.elderlyserviceplatform.entity.vo.CommentPageVO;

import java.util.List;

/**
 * 评论信息表 服务类
 */
public interface CommentService extends IService<Comment> {

    Page<CommentPageVO> queryPage(ListQueryPageDTO listQueryPageDTO);

    Integer getCommentsByRootId(String rootId);

    List<ClientCommentVo> list(String id);

    void addComment(Comment comment);

    void addReplyComment(Comment comment);
}
